# -*- coding: utf-8 -*-

class People:
    school = '学院'

    def __init__(self, name, age, sex):
        self.name = name
        self.age = age
        self.sex = sex
class Student(People):
    def __init__(self, name, age, sex, score):
        # super(自己的类名,自己的对象) = super()
        super(Student, self).__init__(name, age, sex)
        self.score = score
class Teacher(People):
    def __init__(self, name, age, sex, score):
        super().__init__(name, age, sex)
        self.score = score


s1 = Student('小明', 18, '男', 94)
print(s1.__dict__)
t1 = Teacher('小红', 17, '女', 99)
print(t1.__dict__)
